﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Practices.Unity;
using XYTXL.Data;

namespace XYTXL.API
{
    public class ServiceContainerV
    {
        public static IUnityContainer Current()
        {

            IUnityContainer container = new UnityContainer();





            //免注册接口类
            container.RegisterType<IWsService, Commanage>("COM".ToUpper());//
            container.RegisterType<IWsService, Commanage>("Commanage".ToUpper());//


            #region 基础模块接口

            //数据接口
            container.RegisterType<IWsService, BaseManage>("BASE".ToUpper());//

            #endregion
            return container;
        }

    }
}
